package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ProvideWareMapper;
import com.ruoyi.system.domain.ProvideWare;
import com.ruoyi.system.service.IProvideWareService;

/**
 * 仓库Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class ProvideWareServiceImpl implements IProvideWareService 
{
    @Autowired
    private ProvideWareMapper provideWareMapper;

    /**
     * 查询仓库
     * 
     * @param id 仓库主键
     * @return 仓库
     */
    @Override
    public ProvideWare selectProvideWareById(Long id)
    {
        return provideWareMapper.selectProvideWareById(id);
    }

    /**
     * 查询仓库列表
     * 
     * @param provideWare 仓库
     * @return 仓库
     */
    @Override
    public List<ProvideWare> selectProvideWareList(ProvideWare provideWare)
    {
        return provideWareMapper.selectProvideWareList(provideWare);
    }

    /**
     * 新增仓库
     * 
     * @param provideWare 仓库
     * @return 结果
     */
    @Override
    public int insertProvideWare(ProvideWare provideWare)
    {
        return provideWareMapper.insertProvideWare(provideWare);
    }

    /**
     * 修改仓库
     * 
     * @param provideWare 仓库
     * @return 结果
     */
    @Override
    public int updateProvideWare(ProvideWare provideWare)
    {
        return provideWareMapper.updateProvideWare(provideWare);
    }

    /**
     * 批量删除仓库
     * 
     * @param ids 需要删除的仓库主键
     * @return 结果
     */
    @Override
    public int deleteProvideWareByIds(Long[] ids)
    {
        return provideWareMapper.deleteProvideWareByIds(ids);
    }

    /**
     * 删除仓库信息
     * 
     * @param id 仓库主键
     * @return 结果
     */
    @Override
    public int deleteProvideWareById(Long id)
    {
        return provideWareMapper.deleteProvideWareById(id);
    }
}
